package src.Packets;

import src.Main;
import src.Players.Player;

public class Dialogue
{
    public Dialogue(Player p)
    {
        if(p == null)
        {
            return;
        }
        switch(p.dialogue)
        {
            case -1: //No dialogue open.
                p.frame.removeAllWindows(p);
            break;
            case 0: //Levelup dialogues.
                p.frame.removeAllWindows(p);
            break;
            default:
                Main.m.log("[" + p.playerIndex + "-" + p.username + "] Unhandled dialogue " + p.dialogue);
            break;
        }
    }
}